package com.ape.service;

import com.ape.pojo.Student;
import com.ape.pojo.query.StudentQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStudentService {
    //    查询所有用户
    public List<Student> listStudent();

    //    根据用户名来查询，并分页展示
    public PageInfo<Student> listStudentByName(StudentQuery studentQuery);

    //    删除
    public boolean deleteStudentById(Integer Sid);

    //    根据id查询用户
    public Student queryStudentById(Integer sid);

    //    修改
    public boolean updateStudent(Student student);

    //  根据name精准查询
    List<Student> queryStudentByName(Student student);

    //    新增用户
    public boolean addStudent(Student student);
}
